from flask import Flask
from core.api.views import v1_bp_api, v1_bp_manage


def make_app():
    app = Flask(__name__, template_folder='./templates', static_folder='./static')
    # app.config['DEBUG'] = True
    app.register_blueprint(v1_bp_api)
    app.register_blueprint(v1_bp_manage)
    return app